package com.aifund.common.dao;

import com.aifund.common.entity.SystemMsg;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface SystemMsgDao extends JpaRepository<SystemMsg,Long>, JpaSpecificationExecutor<SystemMsg> {


    @Override
    Page<SystemMsg> findAll(Specification<SystemMsg> specification, Pageable pageable);

    SystemMsg getById(Long id);
}
